package com.first.xiinn.model;

import java.util.Date;
import com.first.core.web.model.BaseModel;

public class User extends BaseModel{

	private String id;
	
	private String name;
	
	private String email;
	
	private String password;
	
	private String sex;
	
	private String phone;
	
	private String address;
	
	/**
	 * 删除状态，1:删除
	 */
	private String delFlag;
	/**
	 * 用户等级
	 */
	private int userRunk; 
	
	private Date registerTime;
	
	private Date lastLoginTime;
	
	private String lastLoginIp;
	
	/**
	 * 用户状态:1：正常使用、2：冻结中、 3：申请中. (如果是0的话,无法登录,被禁用)
	 */
	private String status;
	
	/**
	 * 是否通过了身份证确认。 邮箱是否通过了验证.当修改了邮箱时,需要重新验证..
	0：没有通过。
	1：通过。
	 */
	private String isValidated;
	
	/**
	 * 会员类型,1:读者，2：作者，3:出版社
	 */
	private String userType;
	
	/**
	 * 推荐用户id
	 */
	private String refereeUserId;
	
	/**
	 * 邮箱验证随机码
	 */
	private String verifyData;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}

	public int getUserRunk() {
		return userRunk;
	}

	public void setUserRunk(int userRunk) {
		this.userRunk = userRunk;
	}

	public Date getRegisterTime() {
		return registerTime;
	}

	public void setRegisterTime(Date registerTime) {
		this.registerTime = registerTime;
	}

	public Date getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public String getLastLoginIp() {
		return lastLoginIp;
	}

	public void setLastLoginIp(String lastLoginIp) {
		this.lastLoginIp = lastLoginIp;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getIsValidated() {
		return isValidated;
	}

	public void setIsValidated(String isValidated) {
		this.isValidated = isValidated;
	}

	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

	public String getRefereeUserId() {
		return refereeUserId;
	}

	public void setRefereeUserId(String refereeUserId) {
		this.refereeUserId = refereeUserId;
	}

	public String getVerifyData() {
		return verifyData;
	}

	public void setVerifyData(String verifyData) {
		this.verifyData = verifyData;
	}
	
	
}
